type conversion
intrinsics

SBYTE()
UBYTE()
SSHORT()
USHORT()
SLONG()
ULONG()
XLONG()
GOADDR()
SUBADDR()
FUNCADDR()
GIANT()
SINGLE()
DOUBLE()
STRING()
STRING$()

type = type ( numString )

Convert a numeric or string value to the specified type.

The argument can be any built-in numeric or string data type, except the complex number types.  The argument is converted to the data type specified by the name of the intrinsic.

These intrinsics will convert any built-in numeric or string type to any other.  The return type is always the name of the intrinsic.

Range checking is performed by these conversion intrinsics, even when conversion is not required.  An overflow error occurs at runtime when a value cannot be represented in the specified return type.

  a# = DOUBLE(temp)
  a# = DOUBLE(value$)
  a# = DOUBLE(a*b+c*d)
  a@@[i] = UBYTE(n*p+q)
  a[n] = USHORT(i+j+k)
  a$ = STRING$(i&)
  a$ = STRING$(j!)
  a$ = STRING$(k#)